import Layout from '@/layout/index.vue';
import type { AppRoute } from '@/types/route';

const noticeRouter: AppRoute[] = [
  {
    path: '/notice',
    component: Layout,
    redirect: '/notice/index',
    name: 'notice',
    meta: {
      title: '公告',
      icon: 'chat-square',
      roles: ['GUEST', 'USER']
    },
    children: [
      {
        path: '/notice/index',
        component: () => import('@/views/notice/index.vue'),
        name: 'noticeShow',
        meta: {
          title: '公告',
          icon: 'chat-square',
          roles: ['GUEST', 'USER']
        },
        hidden: true
      }
    ]
  }
];

export default noticeRouter;
